﻿using Microsoft.Owin;
using Owin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Dispatcher;
using Xinchen.SOA.GateWay;

[assembly: OwinStartup(typeof(Startup))]
namespace Xinchen.SOA.GateWay
{
    public class Startup
    {
        public void Configuration(IAppBuilder appBuilder)
        {
            HttpConfiguration config = new HttpConfiguration();
            config.MessageHandlers.Add(new AuthHandler());
            config.MessageHandlers.Add(new CountdownHandler());
            config.MessageHandlers.Add(new DispatcherHandler());
            appBuilder.UseWebApi(config);
        }
    }
}
